package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallIntegrationDO;
import com.starlink.model.request.MallIntegrationRequest;
import com.starlink.model.vo.MallIntegrationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallIntegrationDtoMapper {

    MallIntegrationDtoMapper INSTANCE = Mappers.getMapper(MallIntegrationDtoMapper.class);

    /**
    * DO to VO
    * @param mallIntegrationDO
    * @return
    */
    MallIntegrationVO do2VO(MallIntegrationDO mallIntegrationDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallIntegrationDO request2DO(MallIntegrationRequest request);
}
